package com.funny.test;


class ILLEception extends Exception{
	public String getMessage(){
		return "wrong values supplied";
	}
}

class user{
	int val1,val2;
	public user(int a, int b){
		val1 = a;
		val2 = b;
	}

	void show() throws ILLEception{
		if((val1<0)||(val2>0))throw new ILLEception();
		System.out.println("value 1 = "+val1);
		System.out.println("value 2 = "+val2);
	}
}
public class Demo {
	public static void main(String[] args) {
		user u1 = new user(-2, 20);
		try{
			u1.show();
		}catch (ILLEception e) {
			System.out.println(e.getMessage());
		}
	}
}
